
	

	<div id="main" class="container">		
			<div id="login" class="form-signin">
			<form class="form-signin" method="post" action="login/user_login_process">

			<img src="<?php echo base_url('/assets/img/logo.jpg')?>" alt="COTEE Logo" style="position: relative; left: 20%;">

				<?php  if($this->session->flashdata('message')=='error'):?>	
					<div class="alert alert-danger" role="alert" style="text-align: center;">
					  <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
					  <span class="sr-only">Error:</span>
					  Unesite ispravno Korisnicko ime i Lozinku
					</div>
				<?php  elseif($this->session->flashdata('message')=='logout'):?>	
					<div class="alert alert-info" role="alert" style="text-align: center;">
					  <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
					  <span class="sr-only">Error:</span>
					  Uspjesno ste se odjavili
					</div>	
				<?php  elseif($this->session->flashdata('message')=='login'):?>	
					<div class="alert alert-danger" role="alert" style="text-align: center;">
					  <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
					  <span class="sr-only">Error:</span>
					  Morate se ulogovati
					</div>
				<?php  elseif($this->session->flashdata('message')=='success'):?>	
					<div class="alert alert-info" role="alert" style="text-align: center;">
					  <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
					  <span class="sr-only">Error:</span>
					  Uspjesno ste se registrovali
					</div>		
				<?php endif; ?>	
				<?php  if(isset($message_display))	{
					echo '<div class="alert alert-info" role="alert" style="text-align: center;">';
					echo '<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>';
					echo '<span class="sr-only">Error:</span>';
					echo $message_display; 
					echo "</div>";
				}?>	

				
				<label for="name" class="sr-only">Korisnicko ime</label>
				<input type="text" name="username" class="form-control" id="name" placeholder="Korisnicko ime" aria-describedby="basic-addon1" required autofocus>
				<label for="password" class="sr-only">Lozinka</label>
				<input type="password" name="password" id="password" class="form-control" placeholder="Lozinka" required>
				<button class="btn btn-lg btn-primary btn-block" type="submit">Uloguj se</button>
				<a href='<?php  echo base_url('register');  ?>' class="btn btn-default btn-block">Klikni za prijavu</a>	

			</form>
		</div>
	</div>



<script type="text/javascript">
	$(document).ready(function() {
		$("html").click(function() {
			$(".alert").hide();
		});

	});
		
</script>
</body>
</html>